<?php
$_->extend('layout');
$_->set('title', 'Mublog home');
?>

<?php foreach ($posts as $post): ?>
	<h2>
            <a href="<?php echo $urlTo('post.view', $post) ?>" title="<?php echo $post->getTitle() ?>">
                <?php echo $post->getTitle() ?></a>
	</h2>
	<div class="post-contents"><?php echo $post->getExcerpt() ?></div>
<?php endforeach ?>